package cn.stylefeng.guns.modular.kh.service;

import cn.stylefeng.guns.base.pojo.page.LayuiPageInfo;
import cn.stylefeng.guns.modular.hx.order.model.params.HxOrderOutParam;
import cn.stylefeng.guns.modular.kh.entity.KhOrderOut;
import cn.stylefeng.guns.modular.kh.model.params.DownDpsIby;
import cn.stylefeng.guns.modular.kh.model.params.KhOrderOutParam;
import cn.stylefeng.guns.modular.kh.model.result.KhOrderOutResult;
import cn.stylefeng.roses.core.reqres.response.ResponseData;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

/**
 * <p>
 * 提总订单 服务类
 * </p>
 *
 * @author zzh
 * @since 2025-10-21
 */
public interface KhOrderOutService extends IService<KhOrderOut> {

    /**
     * 新增
     *
     * @author zzh
     * @Date 2025-10-21
     */
    void add(KhOrderOutParam param);

    /**
     * 删除
     *
     * @author zzh
     * @Date 2025-10-21
     */
    void delete(KhOrderOutParam param);

    /**
     * 更新
     *
     * @author zzh
     * @Date 2025-10-21
     */
    void update(KhOrderOutParam param);

    /**
     * 查询单条数据，Specification模式
     *
     * @author zzh
     * @Date 2025-10-21
     */
    KhOrderOutResult findBySpec(KhOrderOutParam param);

    /**
     * 查询列表，Specification模式
     *
     * @author zzh
     * @Date 2025-10-21
     */
    List<KhOrderOutResult> findListBySpec(KhOrderOutParam param);

    /**
     * 查询分页数据，Specification模式
     *
     * @author zzh
     * @Date 2025-10-21
     */
     LayuiPageInfo findPageBySpec(KhOrderOutParam param, String condition);


    ResponseData getExceldata(MultipartFile file, KhOrderOutParam khOrderOutParam, ResponseData data)throws Exception;

    ResponseData getKhExceldata(MultipartFile file, KhOrderOutParam khOrderOutParam, ResponseData data)throws Exception;

    /**
     * 下发DPS
     * @param downDpsIby
     * @return
     */
    ResponseData downDps(DownDpsIby downDpsIby) throws Exception;

    ResponseData gxTz(Long[] ids) throws Exception;

}
